<!-- 内容 -->
<div style="margin:10px"></div>
<div class="content">
    <form id="form" class="easyui-form" method="POST" data-options="novalidate:true">
        <input type='hidden' name="id" id="id"/>
        <table cellpadding="5" border="0">
            <tr>
                <td width="20%" align="right">模块名称：</td>
                <td width="30%"><input class="easyui-textbox" type="text" name="name" data-options="required:true"/></td>
                <td width="15%" align="right">模块简称：</td>
                <td width="30%"><input class="easyui-textbox" type="text" name="shortName" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">模块类型：</td>
                <td><input class="easyui-textbox" type="text" name="type" data-options="required:true"/></td>
                <td align="right">所属产品：</td>
                <td>
                    <input class="easyui-combobox"
                           name="productId"
                           editable="false"
                           data-options="required:true,
                           url:'/rest/admin/products',
                           method:'get',
                           valueField:'id',
                           textField:'name',
                           panelHeight:'auto'">
                </td>

            </tr>

            <tr>
                <td align="right">git库路径：</td>
                <td><input class="easyui-textbox" type="text" name="git" data-options="required:true"/></td>
                <td align="right">代码url：</td>
                <td><input class="easyui-textbox" type="text" name="url" data-options="required:true"/></td>
            </tr>

            <tr>
                <td align="right">预热url：</td>
                <td><input class="easyui-textbox" type="text" name="warmUpUrl" data-options="required:true"/></td>
                <td align="right">更新时间：</td>
                <td><input class="easyui-datetimebox" type="text" name="updateTime" data-options="required:true" editable="false"/></td>
            </tr>

            <tr>
                <td align="right">前置脚本：</td>
                <td><input class="easyui-textbox" type="text" name="fScript" data-options="required:true"/></td>
                <td align="right">后置脚本：</td>
                <td><input class="easyui-textbox" type="text" name="bScript" data-options="required:true"/></td>
            </tr>
            <tr>
                <td align="right">部署路径：</td>
                <td><input class="easyui-textbox" type="text" name="path" data-options="required:true"/></td>
                <td align="right">域名：</td>
                <td><input class="easyui-textbox" type="text" name="domainName" data-options="required:true"/></td>
            </tr>


            <tr>
                <td align="right">备注：</td>
                <td colspan="3"><input class="easyui-textbox" name="mark" data-options="required:true,multiline:true" style="width: 100%;height: 60px"/></td>
            </tr>

            <tr>
                <td align="right">模块简介：</td>
                <td><input class="easyui-textbox" type="text" name="dis" data-options="required:true"/></td>
            </tr>

        </table>
    </form>
</div>

<!-- 弹出框按钮 -->
<div class="windowButton" style="padding:10px">
    <a id="save" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-save" onclick="_submit()"
       href="javascript:void(0)">保存</a>
    <a id="cancel" class="easyui-linkbutton my-dialog-button" plain="true" icon="icon-cancel"
       href="javascript:void(0)">取消</a>
</div>

<script>
    // $('#language').combobox('reload', 'combobox_data1.json')
    $(function () {
        $("#cancel").on("click", function () {
            $childwin().window("close");
        });
    })

    _get();

</script>